package com.bzframework.pro.io.manager;

import com.bzframework.pro.io.entity.FileInfo;
import org.springframework.http.codec.multipart.FilePart;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 * @Author bingzhong
 * @Date 2024/12/6 13:38
 * @Description
 */
public interface FileManager {

    Mono<FileInfo> saveFile(FilePart filePart);

    Mono<Void> readFile(String fileId, ServerWebExchange exchange);

}
